import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
//import { LoginComponent } from './login/login.component';
//import { AccountComponent } from './account.component';
import { HCLayoutComponent } from './hc-layout/hc-layout.component';
import { HCLoginComponent } from './hc-login/hc-login.component';

@NgModule({
  imports: [
    RouterModule.forChild([
      {
        path: '',
        component: HCLayoutComponent,
        children: [
          //{ path: 'login', component: LoginComponent },
          {
            path: 'login',
            component: HCLoginComponent,
            data: { title: '登录' },
          },
          {
            path: '**',
            redirectTo: 'login',
          },
        ],
      },
    ]),
  ],
  exports: [RouterModule],
})
export class AccountRoutingModule { }
